﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserControl/MasterPage.Master"
    AutoEventWireup="true" CodeBehind="ChiTietSanPham.aspx.cs" Inherits="TMDT_Nhom1A.San_Pham.ChiTietSanPham" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="tk" %>
<%@ Register Src="../UserControl/GioHang.ascx" TagName="GioHang" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="divRegistry" runat="server" class="module_round_box_inner">
        <div class="module_round_box_inner2">
            <div class="s5_mod_h3_1">
                <div class="s5_mod_h3_2">
                    <h3 class="s5_mod_h3">
                        <span class="s5_h3_first">Chi tiết sản phẩm</span>
                    </h3>
                </div>
            </div>
            <tk:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </tk:ToolkitScriptManager>
            <asp:DataList ID="dldetailproduct" runat="server" Height="50px" Width="100%" OnItemCommand="dldetailproduct_ItemCommand"
                OnItemDataBound="dldetailproduct_ItemDataBound">
                <ItemTemplate>
                    <table border="0" style="width: 100%;">
                        <tbody>
                            <tr>
                                <td width="33%" rowspan="4" valign="top">
                                    <br>
                                    <a href='<%# Eval("ImagePath","../images/{0}")%>' alt='<%# Eval("ElectricDevice_ID") %>'
                                        title='<%# Eval("ElectricDevice_ID") %>'>
                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImagePath","../images/{0}")%>'
                                            alt='<%# Eval("ElectricDevice_ID") %>' border="0" />
                                    </a>
                                    <br>
                                </td>
                                <td rowspan="1" colspan="2">
                                    <h1>
                                        <asp:Label ID="lbElectricDeviceID" runat="server" Text='<%# Eval("ElectricDevice_ID") %>'></asp:Label>
                                    </h1>
                                </td>
                            </tr>
                            <tr>
                                <td width="33%" valign="top" align="left">
                                    <div id="divnondel" runat="server">
                                        <strong>Giá bán lẽ: </strong><span class="productPrice">
                                            <asp:Label ID="lbRetailPrice" runat="server" ForeColor="Red" Font-Bold="true" Text='<%# Eval("RetailPrice") %>'></asp:Label>
                                        </span>
                                        <asp:Label ID="lbcurrency" runat="server" Text='<%# Eval("Currency_ID") %>'></asp:Label>
                                        <br>
                                        <strong>Giá bán sĩ: </strong><span class="productPrice">
                                            <asp:Label ID="lbDealerPrice" runat="server" ForeColor="Red" Font-Bold="true" Text='<%# Eval("DealerPrice") %>'></asp:Label>
                                        </span>
                                        <asp:Label ID="Label8" runat="server" Text='<%# Eval("Currency_ID") %>'></asp:Label></div>
                                    <div id="divdel" runat="server" visible="false">
                                        <strong>Giá bán lẽ: </strong><span class="productPrice"><del>
                                            <asp:Label ID="Label10" runat="server" ForeColor="Red" Font-Bold="true" Text='<%# Eval("RetailPrice") %>'></asp:Label></del>
                                        </span>
                                        <asp:Label ID="Label11" runat="server" Text='<%# Eval("Currency_ID") %>'></asp:Label>
                                        <br>
                                        <strong>Giá bán sĩ: </strong><span class="productPrice"><del>
                                            <asp:Label ID="Label12" runat="server" ForeColor="Red" Font-Bold="true" Text='<%# Eval("DealerPrice") %>'></asp:Label></del>
                                        </span>
                                        <asp:Label ID="Label13" runat="server" Text='<%# Eval("Currency_ID") %>'></asp:Label>
                                        <br />
                                        <strong>Giá coupon: </strong><span class="productPrice">
                                            <asp:Label ID="lbNonDiscountPrice" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                                        </span>
                                        <asp:Label ID="Label15" runat="server" Text='<%# Eval("Currency_ID") %>'></asp:Label>
                                        <br>
                                        <strong>Giá coupon giảm: </strong><span class="productPrice">
                                            <asp:Label ID="lbDiscountPrice" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                                        </span>
                                        <asp:Label ID="Label17" runat="server" Text='<%# Eval("Currency_ID") %>'></asp:Label>
                                    </div>
                                    <br>
                                    <div class="vmCartContainer">
                                        <div style="float: left; vertical-align: middle;">
                                            <label for="quantity181" class="quantity_box">
                                                Số lượng:&nbsp;</label>
                                            <asp:TextBox ID="tbquantity" Width="40px" CssClass="inputboxquantity" runat="server"></asp:TextBox>
                                            <tk:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="tbquantity"
                                                FilterType="Numbers" runat="server">
                                            </tk:FilteredTextBoxExtender>
                                            <%--<asp:ImageButton ID="ImageButton1" runat="server" OnClick="var qty_el = document.getElementById('tbquantity'); var qty = qty_el.value; if( !isNaN( qty )) qty_el.value++;return false;" />
                                    <asp:ImageButton ID="ImageButton2" runat="server" OnClick="var qty_el = document.getElementById('tbquantity'); var qty = qty_el.value; if( !isNaN( qty ) &amp;&amp; qty &gt; 0 ) qty_el.value--;return false;" />--%>
                                            <asp:Button ID="Button1" CommandName="AddToCart" CssClass="addtocart_button" runat="server"
                                                Text="Thêm vào Giỏ" OnClientClick="if(!confirm('Bạn có muốn xóa sản phẩm này không ?')) return false;" />
                                        </div>
                                    </div>
                                </td>
                                <!--    <td valign="top"><br /></td>-->
                            </tr>
                            <tr>
                                <td>
                                    <a target="_blank" href="https://www.baokim.vn/payment/customize_payment/product?business=ankomart.com@gmail.com&amp;product_name=&gt;8336-800&amp;product_price=

	
		6350000			


&amp;product_quantity=1&amp;total_amount=

	
		6350000			


">
                                        <img src="../images/baokim.png" alt="Thanh toán an toàn vo+'i Ba?o Kim !" border="0"
                                            title="Thanh toán trực tuyến an toàn dùng tài khoản Ngân hàng (VietcomBank, TechcomBank, Đông Á, VietinBank, Quân Đội, VIB, SHB,... và thẻ Quốc tế (Visa, Master Card...) qua Cổng thanh toán trực tuyến BảoKim.vn">
                                    </a>&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <a href="https://www.baokim.vn/payment_guide/ankomart.html" target="_blank">[Hướng dẫn
                                        thanh toán]</a>
                                </td>
                            </tr>
                            <!-- <tr>
	  <td colspan="2"><a class="button" href="/index.php?option=com_virtuemart&amp;Itemid=231&amp;category_id=13&amp;flypage=flypage.tpl&amp;lang=vi&amp;page=shop.ask&amp;product_id=181">Ask a question about this product</a></td>
	</tr> -->
                            <tr>
                                <td rowspan="1" colspan="2">
                                    <hr>
                                    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                                        <tbody>
                                            <tr>
                                                <td class="ProBody2">
                                                    <strong>Hãng : </strong>
                                                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("Brand_Name") %>'></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="ProBody2">
                                                    <strong>Số lượng : </strong>
                                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="ProBody2">
                                                    <strong>Chất lượng : </strong>
                                                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("Quanlity") %>'></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="ProBody2">
                                                    <strong>Kích thước : </strong>
                                                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("Size") %>'></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="ProBody2">
                                                    <strong>Mô tả : </strong>
                                                    <asp:Label ID="Label5" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <br>
                                    <span style="font-style: italic;"></span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div style="margin-left: 500px">
                        Số lượng người mua :
                        <asp:Label ID="Label9" runat="server" Font-Bold="true" ForeColor="Red" Text='<%# Eval("NumberOfBuyers") %>'></asp:Label>
                </ItemTemplate>
            </asp:DataList>
            <div style="margin-left: 600px">
                <asp:ImageButton ID="ibBack" ImageUrl="~/images/back-icon.png" runat="server" OnClick="ibBack_Click" />
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <uc1:GioHang ID="GioHang1" runat="server" />
</asp:Content>
